package com.htwy.framework.controller;

import com.htwy.core.model.Menu;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Record;
import java.util.List;

public class WelcomeController extends Controller{

    public void index(){
        List<Record> menus = Menu.dao.getAllSubMenu("1");
        setAttr("menus", menus);
        render("index2.html");
    }

    public void welcome(){
        renderText("welcome you!");
    }

    public void view1(){
        renderTemplate("view1.html");
    }

    public void view2(){
        renderTemplate("view2.html");
    }

    public void view3(){
        renderTemplate("view3.html");
    }

    public void view4(){
        renderTemplate("view4.html");
    }

}
